package com.zry.simpleBlog;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.PropertySource;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 系统启动类
 */
@SpringBootApplication
@MapperScan("com.zry.simpleBlog.mapper")
@PropertySource("classpath:globalVariable.properties")
@EnableAsync
@EnableCaching
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        System.out.println("-------->启动成功");
        System.out.println("-------->- **博客前台**: http://127.0.0.1/" );
        System.out.println("-------->- **博客后台**: http://127.0.0.1/back/login.html");
        System.out.println("-------->- **测试账号**: 用户名：root  密码：root");
    }
}
